// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   OptConfirmAction.java

package com.boci.clientapp.trading.action;

import com.boci.clientapp.main.ApplicationService;
import com.boci.clientapp.main.MainPanel;
import com.boci.clientapp.orderstatus.OrderStatusScrPanel;
import com.boci.common.action.AbstractAction;
import com.boci.common.ui.AbstractTabSclPane;
import java.util.HashMap;

public class OptConfirmAction extends AbstractAction
{

    public OptConfirmAction()
    {
    }

    public void doProcess(HashMap pInpMap, String pActionType)
    {
        if(pActionType.equals("OK"))
        {
            boolean hkOptionFlag = true;
            if(pInpMap != null)
            {
                Boolean hkOptionBool = (Boolean)pInpMap.get("HK_OPTION_FLAG");
                if(hkOptionBool != null)
                    hkOptionFlag = hkOptionBool.booleanValue();
            }
            int intViewOption = 0;
            if(hkOptionFlag)
                intViewOption = 3;
            else
                intViewOption = 4;
            String strModName = "ORDER_STATUS_MODULE";
            String strOptionScr = "ORDER_STATUS_SCREEN";
            OrderStatusScrPanel orderStatusPanel = (OrderStatusScrPanel)appServ.getMainPanel().getTab(strModName).getPanel(strOptionScr);
            orderStatusPanel.showOrderStatusTable(intViewOption);
            appServ.getMainPanel().showScreen(strModName, strOptionScr);
        }
    }
}
